import request from '@/utils/request'

export function clearCache() {
  return request({
    url: '/admin/setting/clearCache.html'
  })
}

export function upload() {
  return request({
    url: '/admin/setting/upload.html'
  })
}

export function uploadPost(uploadData) {
  return request({
    url: '/admin/setting/uploadPost.html',
    method: 'post',
    data: uploadData
  })
}

export function site() {
  return request({
    url: '/admin/setting/site.html'
  })
}

export function sitePost(options, cdn_settings, cmf_settings) {
  return request({
    url: '/admin/setting/sitePost.html',
    method: 'post',
    data: {
      options,
      cdn_settings,
      cmf_settings
    }
  })
}

export function passwordPost(passwordData) {
  return request({
    url: '/admin/setting/passwordPost.html',
    method: 'post',
    data: passwordData
  })
}

export function slideList() {
  return request({
    url: '/admin/slide/index.html',
    method: 'post'
  })
}
